{extend name="public:_base" /}
{block name="js"}

{include file="public/_validform"}
{load href="__STATIC__/admin/js/common.js" /}
<script type="text/javascript">

$("[name='show'][value='{$data.show ?? '0'}']").attr("checked", true);
</script>

{/block}
{block name="main"}
<form class="form form-horizontal" action="#" id="form1" method="post">

    <div class="row cl">
        <label class="form-label col-xs-2 col-sm-2"><span class="c-red">*</span>
            选择领导：</label>
        <div class="formControls col-xs-10 col-sm-10">
            <select name="toid">
                <option value="">请选择</option>
                {volist name="list" id="vo"}
                <option value="{$vo.id}">{$vo.name}</option>
                {/volist}
            </select>
        </div>

    </div>
    <div class="row cl">
        <label class="form-label col-xs-2 col-sm-2"><span class="c-red">*</span>
            {switch name="$Request.param.type" }
            {case value="1" }发信给领导{/case}
            {case value="2"}心理咨询{/case}
            {case value="3"}法律咨询{/case}
            {default /}默认情况
            {/switch}{:lang('标题')}：</label>
        <div class="formControls col-xs-10 col-sm-10">
            <input type="text" class="input-text" value="{$data.title ?? ''}" placeholder="{:lang('title')}"
                   datatype="*" name="title">
        </div>

    </div>

    <div class="row cl">
        <label class="form-label col-xs-2 col-sm-2"><span class="c-red">*</span>{:lang('content')}：</label>
        <div class="formControls col-xs-10 col-sm-10">
            <textarea name="center" cols="" rows="" class="input-text textarea" placeholder="说点什么...最少输入10个字符"
                      datatype="*" dragonfly="true">{$data.center ?? ''}</textarea>

        </div>
    </div>
    <div class="row cl">
        <label class="form-label col-xs-2 col-sm-2"><span class="c-red">*</span>展示：</label>
        <div class="formControls col-xs-10 col-sm-10">
            <div class="radio-box">
                <input type="radio" name="show" id="radio-0" value="0">
                <label for="radio-0">私人</label>
            </div>

            <div class="radio-box radio-right">
                <input type="radio" name="show" id="radio-1" value="1">
                <label for="radio-1">公开</label>
            </div>

        </div>
    </div>

    <div class="row cl">
        {:token()}
        <div class="col-xs-6 col-sm-6 col-xs-offset-4 col-sm-offset-2">
            <input name="type" value="{$Request.param.type}" type="hidden"/>

            <input class="btn radius btn-primary radius" type="submit" value="&nbsp;&nbsp;{:lang('save')}&nbsp;&nbsp;">
            <input class="btn radius btn-default radius" type="reset" value="&nbsp;&nbsp;刷新&nbsp;&nbsp;">

        </div>
    </div>
</form>
{/block}
